package com.woniuxy.controller;
import com.woniuxy.entity.User;
import com.woniuxy.service.RbacManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName RbacManagerController
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/8/19 17:14
 * @Version 1.0
 */
@Controller
@RequestMapping("/rbacManager")
public class RbacManagerController {
    @Autowired
    RbacManagerService rbacManagerService;
    @RequestMapping("/addOneJson")
    @ResponseBody
    public User addUserByMap(@RequestBody User user){
        rbacManagerService.addUser(user);
        return user;
    }
}
